Optimal. Leaf size=27 \[ \frac{A \sin (c+d x)}{d}+B x+\frac{C \tanh ^{-1}(\sin (c+d x))}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.049924, antiderivative size = 27, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 27, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.148, Rules used = {4047, 8, 4045, 3770} \[ \frac{A \sin (c+d x)}{d}+B x+\frac{C \tanh ^{-1}(\sin (c+d x))}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4047
Rule 8
Rule 4045
Rule 3770
Rubi steps
\begin{align*} \int \cos (c+d x) \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx &=B \int 1 \, dx+\int \cos (c+d x) \left (A+C \sec ^2(c+d x)\right ) \, dx\\ &=B x+\frac{A \sin (c+d x)}{d}+C \int \sec (c+d x) \, dx\\ &=B x+\frac{C \tanh ^{-1}(\sin (c+d x))}{d}+\frac{A \sin (c+d x)}{d}\\ \end{align*}
Mathematica [A] time = 0.0172103, size = 38, normalized size = 1.41 \[ \frac{A \sin (c) \cos (d x)}{d}+\frac{A \cos (c) \sin (d x)}{d}+B x+\frac{C \tanh ^{-1}(\sin (c+d x))}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.044, size = 41, normalized size = 1.5 \begin{align*} Bx+{\frac{A\sin \left ( dx+c \right ) }{d}}+{\frac{Bc}{d}}+{\frac{C\ln \left ( \sec \left ( dx+c \right ) +\tan \left ( dx+c \right ) \right ) }{d}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.934211, size = 62, normalized size = 2.3 \begin{align*} \frac{2 \,{\left (d x + c\right )} B + C{\left (\log \left (\sin \left (d x + c\right ) + 1\right ) - \log \left (\sin \left (d x + c\right ) - 1\right )\right )} + 2 \, A \sin \left (d x + c\right )}{2 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.507179, size = 120, normalized size = 4.44 \begin{align*} \frac{2 \, B d x + C \log \left (\sin \left (d x + c\right ) + 1\right ) - C \log \left (-\sin \left (d x + c\right ) + 1\right ) + 2 \, A \sin \left (d x + c\right )}{2 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (A + B \sec{\left (c + d x \right )} + C \sec ^{2}{\left (c + d x \right )}\right ) \cos{\left (c + d x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.16414, size = 95, normalized size = 3.52 \begin{align*} \frac{{\left (d x + c\right )} B + C \log \left ({\left | \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) + 1 \right |}\right ) - C \log \left ({\left | \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) - 1 \right |}\right ) + \frac{2 \, A \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )}{\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + 1}}{d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]